package com.htthorizon.model.mapper;

import com.htthorizon.model.domain.ModelNeed;
import com.htthorizon.model.request.ModelNeedAddReq;
import com.htthorizon.model.request.ModelNeedSearchReq;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Brilliant
* @description 针对表【model_need】的数据库操作Mapper
* @createDate 2023-12-07 15:52:04
* @Entity com.htthorizon.model.domain.ModelNeed
*/
@Mapper
public interface ModelNeedMapper {

    int deleteByPrimaryKey(Long id);

    int insert(ModelNeed record);

    int insertSelective(ModelNeed record);

    ModelNeed selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ModelNeed record);

    int updateByPrimaryKey(ModelNeed record);

    List<ModelNeed> getModelNeedList(@Param("modelNeed") ModelNeedSearchReq modelNeed ,@Param("pageNum")Integer pageNum,@Param("pageSize")Integer pageSize);

    boolean addModelNeed(ModelNeedAddReq modelNeedAddReq);

    boolean updateById(ModelNeedAddReq modelNeedAddReq);

    int delById(Long id);

    ModelNeed getById(Long id);

    long count(@Param("modelNeed") ModelNeedSearchReq modelNeed);
}
